<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<!-- intoHead Start -->
		{include file="common/intohead" /}
		<!-- /intoHead End -->
	</head>
	<body class="mainbody">
		<!--导航栏-->
		{include file="common/position" /}
		<!--/导航栏-->

		<div class="line10"></div>

		<div id="floatHead" class="content-tab-wrap" style="height: 42px;">
			<div class="content-tab" style="width: 1251px;">
				<div class="content-tab-ul-wrap">
					<div class="tab-title">
						<span>系统基本信息</span><i></i>
					</div>
					<ul>
						<li><a class="selected" href="#">新增配置</a></li>
					</ul>
				</div>
			</div>
		</div>

		<form action="{:url('admin/system/addConfig')}" method="POST" id="formData" onsubmit="return false">
			<!--主站基本信息-->
			<div class="tab-content">
				<dl>
					<dt>配置标识</dt>
					<dd>
						<input name="name" type="text" value="" id="name" placeholder="选项填写格式：web_site_title" class="input normal" datatype="*2-255" sucmsg=" ">
						<span class="Validform_checktip"><span style="color:red">*</span> 用于C函数调用，只能使用英文且不能重复 例如：web_site_title</span>
					</dd>
				</dl>
				<dl>
					<dt>标识说明</dt>
					<dd>
						<input name="title" type="text" value="" id="title" placeholder="选项填写格式：网站标题" class="input normal" datatype="url" sucmsg=" ">
						<span class="Validform_checktip"><span style="color:red">*</span> 用于后台显示的配置标题</span>
					</dd>
				</dl>
				<dl>
					<dt>配置排序</dt>
					<dd>
						<input name="sort" type="text" value="" id="sort" placeholder="选项填写格式：1" class="input normal">
						<span class="Validform_checktip"><span style="color:red">*</span> 用于分组显示的顺序</span>
					</dd>
				</dl>
				<dl>
					<dt>配置类型</dt>
					<dd>
					<div class="rule-single-select single-select">
						<select name="type" datatype="*" sucmsg=" ">
							<!--由于获取不到Config，所以用php赋值一次Think.config.config_type_list-->
							{php}$config_type_list = Config::get()['config_type_list'];{/php}
							{volist name="config_type_list" id="type"}
								<option value="{$key}">{$type}</option>
							{/volist}
						</select>
					</div>
					<span class="Validform_checktip" style="position:absolute;left:306px;top:5px;"><span style="color:red">*</span> 系统会根据不同类型解析配置值</span>
					</dd>
				</dl>
				<dl>
					<dt>配置分组</dt>
					<dd>
						<div class="rule-single-select single-select">
							<select name="group" datatype="*" sucmsg="">
								<option value="0">不分组</option>
								<!--由于获取不到Config，所以用php赋值一次Think.config.config_group_list-->
								{php}$config_group_list = Config::get()['config_group_list'];{/php}
								{volist name="config_group_list" id="group"}
									<option value="{$key}">{$group}</option>
								{/volist}
							</select>
						</div>
						<span class="Validform_checktip" style="position:absolute;left:306px;top:5px;"><span style="color:red">*</span> 配置分组 用于批量设置 不分组则不会显示在系统设置中</span>
					</dd>
				</dl>
				<!-- <dl>
					<dt>是否显示</dt>
					<dd>
						<div class="rule-single-checkbox single-checkbox margin-r229">
							<a href="#" class="selected"><i class="off">否</i><i class="on">是</i></a>
							<input id="status" type="checkbox" name="status" checked="checked" style="display: none;">
						</div>
						<span class="Validform_checktip">*设置“配置”状态</span>
					</dd>
				</dl> -->

				<dl class="relation">
					<dt>是否显示</dt>
					<dd>
						<label style="normal"><input name="status" value="1" checked="" type="radio" style="position:relative;top:2px;"> 显示 </label>&emsp;
	                    <label style="normal"><input name="status" value="0" type="radio" style="position:relative;top:2px;"> 不显示 </label>
						<span class="Validform_checktip" style="position:absolute;left:306px;top:5px;">设置“配置显示”状态</span>
					</dd>
				</dl>
				
				<dl>
					<dt>配置选项</dt>
					<dd>
						<textarea name="extra" rows="2" cols="20" id="extra" placeholder="选项填写格式：0:测试,1:开区" class="input"></textarea>
						<span class="Validform_checktip"><span style="color:red">*</span> 如果是枚举型需要配置该项</span>
					</dd>
				</dl>
				<dl>
					<dt>配置参数</dt>
					<dd>
						<textarea name="value" rows="2" cols="20" id="value" placeholder="选项填写格式：1" class="input"></textarea>
						<span class="Validform_checktip"><span style="color:red">*</span> 配置值</span>
					</dd>
				</dl>
				<dl>
					<dt>默认参数</dt>
					<dd>
						<input name="default" type="text" value="" id="default" class="input normal">
						<span class="Validform_checktip"><span style="color:red">*</span> 例如："&lt;\meta charset='UTF-8'&gt;"</span>
					</dd>
				</dl>
				<dl>
					<dt>参数提示</dt>
					<dd>
						<input name="placeholder" type="text" value="" id="placeholder" class="input normal">
						<span class="Validform_checktip"><span style="color:red">*</span> 用于后台显示的配置标题</span>
					</dd>
				</dl>
				<dl>
					<dt>配置说明</dt>
					<dd>
						<textarea name="remark" rows="2" cols="20" id="remark" placeholder="填写格式：配置详细说明" class="input"></textarea>
						<span class="Validform_checktip"><span style="color:red">*</span> 配置详细说明</span>
					</dd>
				</dl>
			</div>
			<!--/网站基本信息-->

			<div class="page-footer">
				<div class="btn-wrap" style="position: static;">
					<input type="submit" value="提交保存" id="btnSubmit" class="btn ajaxSubmit">
					<input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);">
				</div>
			</div>
		</form>
		<!--数据提交-->
		<!-- {include file="common/submit" /} -->
		<!--/数据提交-->
	</body>
</html>